package com.bruce.aidemo.config;

import com.alibaba.cloud.ai.tongyi.image.TongYiImagesClient;
import com.alibaba.dashscope.aigc.imagesynthesis.ImageSynthesis;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ClientConfig {

    @Bean
    public ImageSynthesis getImageSynthesis() {
        return new ImageSynthesis();
    }

    @Bean("tongyiImageClient")
    public TongYiImagesClient getTongyiImagesClient(ImageSynthesis imageSynthesis) {
        return new TongYiImagesClient(imageSynthesis) ;
    }
}
